/* Account surfaces use explicit 44px hit areas on touch devices. */
.account-check {
  position: relative;
  grid-template-columns: 44px 1fr !important;
  align-items: center;
  min-height: 44px;
}

.account-check input {
  position: absolute;
  inset: 0 auto auto 0;
  width: 44px;
  height: 44px;
  min-height: 44px;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.account-check span {
  position: relative;
  grid-column: 2;
  min-width: 0;
}

.account-check span::before {
  content: "";
  position: absolute;
  right: calc(100% + 11px);
  top: 50%;
  width: 22px;
  height: 22px;
  border: 1px solid #94a3b8;
  border-radius: 5px;
  background: #fff;
  transform: translateY(-50%);
}

.account-check input:checked + span::before {
  border-color: #2563eb;
  background: #2563eb;
  box-shadow: inset 0 0 0 5px #fff;
}

.account-check input:focus-visible + span::before {
  outline: 3px solid rgba(37, 99, 235, .35);
  outline-offset: 2px;
}

.account-body .btn,
.account-form button[type="submit"],
.account-password-field button,
.account-auth-card details summary {
  min-height: 44px;
}

.account-auth-card p a,
.account-auth-links a,
.account-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.account-body .site-header .header-nav a,
.account-body .site-header .header-nav button {
  min-height: 44px;
}

/* The password action is inset into a 48px input. The generic 44px touch
   minimum must therefore use the full inner height instead of retaining the
   desktop 6px top offset and overflowing below the field. */
.account-password-field button {
  top: 2px;
  right: 2px;
  bottom: 2px;
  height: auto;
  min-height: 0;
}
